package com.sctvcloud.qingchuan.beans;

import android.text.TextUtils;

import com.ruihang.generalibrary.utils.IShares;

import java.util.List;

/**
 * 公众号新闻详情数据
 */
public class AccountNewsDetail implements IShares {

    private List<NewsVideoVo> videos;
    private List<NewsImgBean> images;
    private AccountNewsArticleBean article;
    private String preViewPath;

    public String getPreViewPath() {
        return preViewPath;
    }

    public void setPreViewPath(String preViewPath) {
        this.preViewPath = preViewPath;
    }

    public List<NewsImgBean> getImages() {
        return images;
    }

    public void setImages(List<NewsImgBean> images) {
        this.images = images;
    }

    public List<NewsVideoVo> getVideos() {
        return videos;
    }

    public void setVideos(List<NewsVideoVo> videos) {
        this.videos = videos;
    }

    public AccountNewsArticleBean getArticle() {
        return article;
    }

    public void setArticle(AccountNewsArticleBean article) {
        this.article = article;
    }

    @Override
    public String getShareTitle() {
        if(article!=null && !TextUtils.isEmpty(article.getTitle())) {
            return article.getTitle();
        }else{
            return "";
        }
    }

    @Override
    public String getShareH5() {
        return null;
    }

    @Override
    public String getShareImage() {
        return article.getLogo();
    }

    @Override
    public String getShareDigest() {
        return null;
    }

    @Override
    public String getShareURL() {
        return preViewPath;
    }
}
